#!/usr/bin/python
#
# Copyright (C) Nicola Bizzoca   2006/2007  <hannibal_smith@users.sourceforge.net>
# Copyright (C) Simone Economo   2006/2007  <ekoes@users.sourceforge.net>
# 
#    This file is part of Absynth-FTP.
#
#    Absynth-FTP is free software; you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation; either version 3 of the License, or
#    (at your option) any later version.
#
#    Absynth-FTP is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.

#try:
#	import psyco
#	psyco.full()
#except ImportError:
#	print "Absynth supports 'psyco', an inline optimizer for python.\n" \
#		  "You can get it at http://sourceforge.net/projects/psyco/."

from widgetsGtk.engine import Absynth
from widgetsGtk import AboutDialog
from widgetsGtk import MainWindow
from widgetsGtk import LocalView
from widgetsGtk import RemoteView
from widgetsGtk import DownloadView
from widgetsGtk import UploadView
from widgetsGtk import LogView
from widgetsGtk import SysTray
from widgetsGtk import WelcomeTab
from widgetsGtk import TreeView
from widgetsGtk import RemoteNotebook
from lib.config import Config

conf = Config()
if conf.get("isFirstTime") == True:
	conf.set("isFirstTime", False)
					
if __name__ == "__main__":
	#try:
		Absynth = Absynth()
		#Absynth.runGUI()
	#except Exception, e:
		#errormsg = e.args[0]
		#if errormsg == "'NoneType' object has no attribute 'set_title'":
			#HandleError("Glade","Could not find '%s' in Glade's project." % conf.WINDOW_TYPE).runError()
		#else:
			#HandleError(e.__class__.__name__, errormsg, skipsearch = True).runError()